<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 使用构造函数创建对象
        let obj =new Object()
        console.log(obj);

        let obj2 = {}
        console.log(obj2);
        
        let arr = [1,2,3]
        console.log(arr);

        let arr2 = new Array(1,2,3)
        console.log(arr2);
        let arr3 = new Array(8) // 创建指定长度的空数组
        console.log(arr3);
        let str = '哈哈哈'
        console.log(str);
        
        let str2 = new String('哈哈哈')
        console.log(str2);

        let num = new Number(110)
        console.log(num);
        console.dir(num);
        let b = new Boolean(true)
        console.log(b);

        console.log(console);
        

        
        
        
        
    </script>
</body>
</html>